<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>
<script type="text/javascript">

$(document).ready(function(){
	<c:if test="${param.returnCode=='0000' }">
	alert('저장되었습니다.');
	</c:if>
	<c:if test="${param.returnCode=='0001' }">
	alert('중복된 아이디가 있습니다.');
	</c:if>
});

//데이터 저장
function submitData(){

}

//펜션삭제
function deleteData(no){
	if(confirm("삭제하시겠습니까? 관련 데이터는 모두 삭제되고 복구가 불가능합니다.")){
		location.href="./peti101T.do?p_id="+no;
	}
}


//사용자 페이지 보여주기
function showUser(p_id){
	$.popUrl("/usr/pe/re/pere1200Q.do?p_id="+p_id,"800","730","userInfo");
// 	
}
function showUser1(p_id){
	$.popUrl("/usr/pe/re/pere700Q.do?p_id="+p_id,"800","730","userInfo");
// 	
}
function showUser2(p_id){
	$.popUrl("/usr/pe/re/pere1200Q.do?p_id="+p_id,"800","730","userInfo");
// 	
}
</script>

	<table width="900" border="0" cellspacing="1" cellpadding="2"
		class="class_admin_table_nocolor">
		<tr>
			<td height="25" width="350"><font color="brown">게시판 관리</font></td>
			<td height="25" width="450" align="left">&nbsp;
			<td align="right">&nbsp;</td>
			</td>
		</tr>
	</table>
	<br>

<body bgcolor="#FFFFFF" text="#000000" cellpadding="0" cellspacing=0>
	<table width="800" border="0" cellspacing="1" cellpadding="2"
		bgcolor="#A0A0A0">
		<form name="grp_manager" method="post"
			action="/module/board2/admin/index.php">
			<INPUT TYPE="hidden" name="step" value="delete"> <INPUT
				TYPE="hidden" name="delete_group_id" value="">
			<TR height="25" bgcolor="#DBDBDB">
				<TD align="center" width="120">캠핑아이디</td>
				<TD align="center">캠핑명</td>
				<TD align="center" width="80">대표자명</td>
				<TD align="center" width="200">홈페이지</td>
			</tr>
<c:if test="${list !=null && fn:length(list)>0 }">
	<c:forEach var="map" items="${list}" varStatus="status">
			<TR height="25" bgcolor="#FFFFFF">
				<TD align="center">${map.p_id }</td>
				<TD align="left"><a
					href="./bdmg0201Q.do?p_id=${map.p_id }">${map.p_nm }</a></td>
				<TD align="center">${map.p_usr_nm }</td>
				<TD align="left"><a href="${map.homepage_url }" target="_blank">${map.homepage_url }</a></td>
			</TR>
	</c:forEach>
</c:if>
		</form>
	</table>



	<br> ${pageHtml }